{include file="header"}
<div style="padding: 20px;">
<div style="padding: 20px; background-color: #F2F2F2;">
 
 <div style="overflow: auto;">
<table class="layui-table" lay-size="lg">
  <colgroup>
    <col width="200">
    <col width="400">
    <col width="200">
    <col width="400">
    <col>
  </colgroup>
  <thead>
    <tr>
      <th>名称</th>
      <th>统计</th>
      <th>名称</th>
      <th>统计</th>
    </tr> 
  </thead>
  <tbody>
    <tr>
      <td>今日注册会员</td>
      <td>{:fun_tj('member','regtime', Date_k(0), 'regtime', Date_k(1), array('open'=>1))} 位</td>
      <td>本月注册会员</td>
      <td>{:fun_tj('member','regtime', Date_k(-30), 'regtime', Date_k(1), array('open'=>1))} 位</td>
    </tr>
    <tr>
      <td>今日投稿共计</td>
       <td>{:fun_tj('model_whole','time', Date_k(0), 'time', Date_k(1), array('open'=>1))} 篇</td>
      <td>本月投稿共计</td>
       <td>{:fun_tj('model_whole','time', Date_k(-30), 'time', Date_k(1), array('open'=>1))} 篇</td>
    </tr>
    <tr>
      <td>今日后台被登录</td>
       <td>{:fun_tj('user_admin_log','time', Date_k(0), 'time', Date_k(1), array())} 次</td>
      <td>今日后台登录错误</td>
       <td>{:fun_tj('user_admin_log','time', Date_k(0), 'time', Date_k(1), array('open'=>0))} 次</td>
    </tr>
  </tbody>
</table>
</div>
<div class="layui-card">
  <div class="layui-card-header" style="color: #595858; padding: 0 30px;">特别提醒</div>
  <div class="layui-card-body" style="color: #595858;padding:20px 30px;line-height: 40px;">
    个人用户可永久免费使用，企业、公司、组织必须购买授权方能用于正式建站。<br>
    未授权程序禁止去掉网家教育资讯管理系统前后台的版权链接<br>
    不得隐藏,或者任意方式去掉网家教育资讯管理系统版权 且导致的一切损失由使用者自行承担。<br>
  </div>
</div>
{if condition="banben() gt config('bb.banben')"}
 <form method="post" class="layui-form" style="overflow: auto;">
<table class="layui-table">
  <colgroup>
    <col width="150">
    <col>
  </colgroup>
  <tbody>
    <tr>
      <td><input type="text" name="title" value=""  placeholder="去www.wjjyzx.com复制你要的升级包’" autocomplete="off" lay-verify="required" class="layui-input" style="width: 350px;float: left;"></td>
      <td><button style="float: left;line-height: 38px;margin: 0 20px;background-color: #000;" class="layui-btn" lay-submit="" lay-filter="sj_add">升级</button></td>
    </tr>
  </tbody>
</table> 
</form>
  <script>
layui.use(['form'],function(){
  var form = layui.form
  ,jq = layui.jquery;
  form.on('submit(sj_add)', function(data){
    loading = layer.load(2, {
      shade: [0.2,'#000']
    });
    var param = data.field;
    jq.post('{:url("index/sj")}',param,function(data){
    	if (data.code == 200) {
    		layer.close(loading);
    		layer.msg(data.msg, {
    			icon: 1,
    			time: 1000
    		}, function() {
    		    location.href = '{:url("index/ad")}';
    	    });
        } else {
        	layer.close(loading);
        	layer.msg(data.msg, {
        		icon: 2,
        		anim: 6,
        		time: 1000
        	});
        }
    });
    return false;
  });

})
</script>
{/if}
<table class="layui-table" lay-size="lg">
  <colgroup>
    <col width="200">
    <col>
  </colgroup>
    <tr>
      <td>版本信息</td>
      <td>网家教育资讯管理系统 V1.0 - 最新版本</td>
    </tr>
    <tr>
      <td>程序状态</td>
      <td>{if condition="state() eq '1'"}<font color="#1e9fff">正版授权</font> 到期时间 <font color="#1e9fff">{if condition="yumi(1) gt '2145888000'"}永久{else /}{:date("Y-m-d ", yumi(1))}{/if} </font>{else /}<font color="#ff5722">未授权</font>  <a href="http://www.115cms.com/" target="_blank">购买</a>{/if}</td>
    </tr>
    <tr>
      <td>服务器类型</td>
      <td>{:php_uname('s')}</td>
    </tr>
    <tr>
      <td>PHP版本</td>
      <td>{:PHP_VERSION}</td>
    </tr>
    <tr>
      <td>Zend版本</td>
      <td>{:Zend_Version()}</td>
    </tr>
    <tr>
      <td>服务器解译引擎</td>
      <td>{:$_SERVER['SERVER_SOFTWARE']}</td>
    </tr>
    <tr>
      <td>服务器语言</td>
      <td>{:$_SERVER['HTTP_ACCEPT_LANGUAGE']}</td>
    </tr>
    <tr>
      <td>服务器Web端口</td>
      <td>{:$_SERVER['SERVER_PORT']}</td>
    </tr>
    <tr>
      <td>您当前的域名</td>
      <td>{:$_SERVER['HTTP_HOST']}</td>
    </tr>
    <tr>
      <td>程序作者</td>
      <td>合肥网家商务信息有限公司</td>
    </tr>
    <tr>
      <td>官方QQ群</td>
      <td><a href="https://jq.qq.com/?_wv=1027&k=5vuyfqb" target="_blank">官方QQ群XXXXXXXXX</a></td>
    </tr>
  </tbody>
</table>
</div>  
{include file="footer"}